class Calculator {
  def calculate(a: Int, b: Int, op: Char): Any = op match {
    case '+' => a + b
    case '-' => a - b
    case '*' => a * b
    case '/' => a / b
    case _ => "Invalid operator"
  }
}